﻿#include <stdio.h>
#include "lib.h"

int main(){
	ListProcess lp; 
	lp = Input();
	printf("%d \n",lp.N)	;
	int i;
	for(i=0;i<lp.N;i++)
	{
		printf("%d ",lp.A[i].Pn);
		printf("%d ",lp.A[i].Est);
		printf("%d ",lp.A[i].Eqt);
		printf("%d ",lp.A[i].St);
		printf("\n");
	}
	printf("%d \n",lp.Q);
	Schedule out;	
	out=RR(lp);	
	Output(out);
	return 0;	
		
	
	
}
